From: Peter Michael Green Date: Sat, 4 Jul 2026 13:27:18 +0000 (+0000) Subject: Import rust-debcargo_2.8.3-2.debian.tar.xz X-Git-Tag: archive/raspbian/2.8.3-2+rpi1^2~4^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1727aaca821ecd017f396f42278a94ebf63aa59a;p=rust-debcargo.git Import rust-debcargo_2.8.3-2.debian.tar.xz [dgit import tarball rust-debcargo 2.8.3-2 rust-debcargo_2.8.3-2.debian.tar.xz] --- 1727aaca821ecd017f396f42278a94ebf63aa59a diff --git a/cargo-checksum.json b/cargo-checksum.json new file mode 100644 index 0000000..b5623be --- /dev/null +++ b/cargo-checksum.json @@ -0,0 +1 @@ +{"package":"Could not get crate checksum","files":{}} diff --git a/changelog b/changelog new file mode 100644 index 0000000..162cf16 --- /dev/null +++ b/changelog @@ -0,0 +1,406 @@ +rust-debcargo (2.8.3-2) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.8.3 from crates.io using debcargo 2.8.3 + * Add patch for clap-mangen 0.3. + + -- Peter Michael Green Sat, 04 Jul 2026 13:27:18 +0000 + +rust-debcargo (2.8.3-1) unstable; urgency=medium + + * Package debcargo 2.8.3 from crates.io using debcargo 2.8.3 + * New features: + - autopkgtest: allow overriding test restrictions + - autopkgtest: allow overriding test command (Closes: ##1039887) + - add "auto-patch" for Cargo.toml normalization + - add "auto-patch" for removing features (Closes: #1014613) + - allow specyfing features needed for build + - emit Breaks for MSRV + * Bug fixes: + - do not generate world-executable executable files + - remove upstream debian/ without repacking tarball + - handle feature cycles correctly + - better errors on overlay = CWD + * Other changes: + - collapse_features=true as new default + - autopkgtest: do not set skip-not-installable by default + - skip most autopkgtests on riscv64 by default + - update Standards-Version to 2.7.4 + + -- Fabian Grünbichler Sun, 07 Jun 2026 00:27:58 +0200 + +rust-debcargo (2.8.2-3) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.8.2 from crates.io using debcargo 2.8.2 + * Skip most tests on riscv64 due to timeouts. + + -- Peter Michael Green Sat, 09 May 2026 19:13:05 +0000 + +rust-debcargo (2.8.2-2) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.8.2 from crates.io using debcargo 2.8.2 + * Relax dependency on toml. + + -- Peter Michael Green Tue, 28 Apr 2026 16:03:04 +0000 + +rust-debcargo (2.8.2-1) unstable; urgency=medium + + * Package debcargo 2.8.2 from crates.io using debcargo 2.8.1 + * new features: + - allow skipping `lib` generation + + -- Fabian Grünbichler Thu, 05 Mar 2026 19:23:19 +0100 + +rust-debcargo (2.8.1-1) unstable; urgency=medium + + * Package debcargo 2.8.1 from crates.io using debcargo 2.7.11 + * fix `update-dependencies` feature/subcommand + + -- Fabian Grünbichler Wed, 18 Feb 2026 12:25:38 +0100 + +rust-debcargo (2.8.0-2) unstable; urgency=medium + + * Collapse features + + -- Fabian Grünbichler Sat, 14 Feb 2026 13:11:36 +0100 + +rust-debcargo (2.8.0-1) unstable; urgency=medium + + * Package debcargo 2.8.0 from crates.io using debcargo 2.7.11 + * new features: + - append arbitrary extra package sections to d/control + - repack suffix support + - improved d/watch generation + - improved orig tarball handling + - improved `deb-dependencies` subcommand + - new `update-dependencies` subcommand + + -- Fabian Grünbichler Sat, 14 Feb 2026 12:39:34 +0100 + +rust-debcargo (2.7.11-2) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.7.11 from crates.io using debcargo 2.7.11 + * Relax dependency on itertools. + + -- Peter Michael Green Tue, 27 Jan 2026 08:26:17 +0000 + +rust-debcargo (2.7.11-1) unstable; urgency=medium + + * Package debcargo 2.7.11 from crates.io using debcargo 2.7.11 + * new features: + - warns about unknown fields in debcargo.toml + - skips generating default RRR "no" + - allows skipping "" annotations + - skip non-UTF8 files in debian/ dir + - switch to uscan v5 + - reduce redundant autopkgtest stanzas for crates without features + + -- Fabian Grünbichler Wed, 01 Oct 2025 20:24:55 +0200 + +rust-debcargo (2.7.10-1) unstable; urgency=medium + + * Package debcargo 2.7.10 from crates.io using debcargo 2.7.10 + * Allow overriding Architecture field + * Bump generated Standards-Version to 4.7.2 + + -- Fabian Grünbichler Tue, 12 Aug 2025 18:18:48 +0200 + +rust-debcargo (2.7.8-4) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.7.8 from crates.io using debcargo 2.7.8 + + [ Fabian Grünbichler ] + * Package debcargo 2.7.8 from crates.io using debcargo 2.7.8 + * Default no M-A value for bin packages (Closes: #1103920) + * Change M-A to no annotation instead of allowed + + -- Peter Michael Green Tue, 06 May 2025 10:42:52 +0000 + +rust-debcargo (2.7.8-3) unstable; urgency=medium + + * Package debcargo 2.7.8 from crates.io using debcargo 2.7.8 + * Uplaod to unstable + + -- Fabian Grünbichler Fri, 04 Apr 2025 19:17:48 +0200 + +rust-debcargo (2.7.8-2) experimental; urgency=medium + + * Package debcargo 2.7.8 from crates.io using debcargo 2.7.8 + * relax git2 to allow libgit2 1.8 and 1.9 + + -- Fabian Grünbichler Mon, 17 Mar 2025 07:13:14 +0100 + +rust-debcargo (2.7.8-1) unstable; urgency=medium + + * Package debcargo 2.7.8 from crates.io using debcargo 2.7.7 + * add `debcargo deb-dependencies` (Closes: #1051501) + * split generated Build-Depends into -Arch and -Indep + * allow overriding Breaks, Replaces and Conflicts + * fix version ranges with + * add manpages (Closes: #971633) + + -- Fabian Grünbichler Fri, 07 Mar 2025 09:46:24 +0100 + +rust-debcargo (2.7.7-1) unstable; urgency=medium + + * Package debcargo 2.7.7 from crates.io using debcargo 2.7.6 + * Update to cargo 0.85 + * Version ranges are now encoded using bounds instead of a series of + alternative dependencies (Closes: #967954) + + -- Fabian Grünbichler Fri, 14 Feb 2025 23:04:09 +0100 + +rust-debcargo (2.7.6-4) unstable; urgency=medium + + * Team upload. + * Use parallel=4 in DEB_BUILD_OPTIONS with dh_auto_install for armhf. + + -- Sudip Mukherjee Tue, 14 Jan 2025 21:36:40 +0000 + +rust-debcargo (2.7.6-3) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.7.6 from crates.io using debcargo 2.7.6 + * Relax dependency on env-logger. + + -- Peter Michael Green Wed, 01 Jan 2025 12:27:58 +0000 + +rust-debcargo (2.7.6-2) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.7.6 from crates.io using debcargo 2.7.5 + * Bump env_logger dependency to v0.11 + + -- NoisyCoil Tue, 31 Dec 2024 13:26:51 +0100 + +rust-debcargo (2.7.6-1) unstable; urgency=medium + + * Package debcargo 2.7.6 from crates.io using debcargo 2.7.5 + + -- Fabian Grünbichler Sun, 29 Dec 2024 19:34:13 +0100 + +rust-debcargo (2.7.5-1) unstable; urgency=medium + + * Package debcargo 2.7.5 from crates.io using debcargo 2.7.5 + + -- Fabian Grünbichler Sun, 24 Nov 2024 16:27:54 +0100 + +rust-debcargo (2.7.4-1) unstable; urgency=medium + + * Package debcargo 2.7.4 from crates.io using debcargo 2.7.2 + + -- Fabian Grünbichler Mon, 11 Nov 2024 21:37:03 +0100 + +rust-debcargo (2.7.2-1) unstable; urgency=medium + + * Package debcargo 2.7.2 from crates.io using debcargo 2.7.1 + + -- Fabian Grünbichler Tue, 22 Oct 2024 19:29:39 +0200 + +rust-debcargo (2.7.1-2) unstable; urgency=medium + + * Package debcargo 2.7.1 from crates.io using debcargo 2.7.0 + * Update git2 to 0.19 / libgit2 to 1.8 + + -- Fabian Grünbichler Sat, 05 Oct 2024 16:42:49 +0200 + +rust-debcargo (2.7.1-1) unstable; urgency=medium + + * Package debcargo 2.7.1 from crates.io using debcargo 2.7.0 + * Update to cargo 0.81, itertools 0.13 + * Fix generated d/watch for pre-release versions + + -- Fabian Grünbichler Fri, 04 Oct 2024 19:15:12 +0200 + +rust-debcargo (2.7.0-1) unstable; urgency=medium + + * Package debcargo 2.7.0 from crates.io using debcargo 2.7.0 + * update to cargo 0.76 + * bump the standard version to 4.7.0 for generated source packages + * no longer warn about uncollapsed packages + * Also generate a 'Static-Built-Using' in addition to the 'X-Cargo-Built-Using' + * Add rustc to autopkgtest Depends of generated source packages + * Switch dh compat to 13 for generated source packages + + -- Fabian Grünbichler Fri, 20 Sep 2024 15:08:30 +0200 + +rust-debcargo (2.6.1-6) unstable; urgency=medium + + * Team upload. + * Update to cargo 0.76 + + -- Fabian Grünbichler Fri, 12 Jul 2024 20:19:43 +0200 + +rust-debcargo (2.6.1-5) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.6.1 from crates.io using debcargo 2.6.1 + * Relax dependencies on itertools and toml. + + -- Peter Michael Green Tue, 30 Jan 2024 16:30:42 +0000 + +rust-debcargo (2.6.1-4) unstable; urgency=medium + + * Team upload. + * Fix sparse access of crates.io + + -- Fabian Grünbichler Tue, 19 Dec 2023 09:26:56 +0100 + +rust-debcargo (2.6.1-3) unstable; urgency=medium + + * Team upload. + * Bump cargo dependency to 0.70 + + -- Fabian Grünbichler Fri, 15 Dec 2023 11:41:50 +0100 + +rust-debcargo (2.6.1-2) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.6.1 from crates.io using debcargo 2.6.1 + * Bump git2 dependency to 0.18 + + -- Peter Michael Green Sun, 03 Dec 2023 16:14:08 +0000 + +rust-debcargo (2.6.1-1) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.6.1 from crates.io using debcargo 2.6.0 + + -- Matthias Geiger Mon, 20 Nov 2023 15:54:01 +0100 + +rust-debcargo (2.6.0-3) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.6.0 from crates.io using debcargo 2.6.0 + * Add patch for env-logger 0.10 + + -- Matthias Geiger Thu, 10 Aug 2023 17:43:57 +0200 + +rust-debcargo (2.6.0-2) unstable; urgency=medium + + * Team upload. + * Rebuild debcargo 2.6.0 with cargo 0.66.0 + + -- Fabian Gruenbichler Thu, 12 Jan 2023 16:33:49 +0000 + +rust-debcargo (2.6.0-1) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.6.0 from crates.io using debcargo 2.5.0 + + -- Fabian Gruenbichler Wed, 16 Nov 2022 10:08:41 +0100 + +rust-debcargo (2.5.0-5) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.5.0 from crates.io using debcargo 2.5.0 + * Bump textwrap dependency. + + -- Peter Michael Green Sun, 30 Oct 2022 16:37:02 +0000 + +rust-debcargo (2.5.0-4) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.5.0 from crates.io using debcargo 2.5.0 + * Bump git2 dependency. + + -- Peter Michael Green Sat, 08 Oct 2022 04:27:58 +0000 + +rust-debcargo (2.5.0-3) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.5.0 from crates.io using debcargo 2.5.0 + * Update dependencies for new textwrap version in Debian. + + -- Peter Michael Green Mon, 14 Mar 2022 01:24:43 +0000 + +rust-debcargo (2.5.0-2) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.5.0 from crates.io using debcargo 2.5.0 + * Don't run the build-time tests on mips64el as they fail to link. + + -- Peter Michael Green Mon, 29 Nov 2021 11:57:39 +0000 + +rust-debcargo (2.5.0-1) unstable; urgency=medium + + * Package debcargo 2.5.0 from crates.io using debcargo 2.5.0 + + -- Ximin Luo Thu, 11 Nov 2021 13:35:58 +0000 + +rust-debcargo (2.4.4-1) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.4.4 from crates.io using debcargo 2.4.3 + * Adjust dependencies for versions currently in sid. + * Revert cargo 0.49 related changes until rust-cargo is + updated in Debian. + + -- Peter Michael Green Sat, 06 Feb 2021 18:12:33 +0000 + +rust-debcargo (2.4.3-3) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.4.3 from crates.io using debcargo 2.4.3 + * Bump dependency on git2 package, the old version is broken + with new libgit2 (Closes: 976658). + + -- Peter Michael Green Mon, 07 Dec 2020 05:21:57 +0000 + +rust-debcargo (2.4.3-2) unstable; urgency=medium + + * Team upload. + * Package debcargo 2.4.3 from crates.io using debcargo 2.4.2 + * Relax dependency on itertools + + -- Peter Michael Green Tue, 01 Sep 2020 13:47:42 +0000 + +rust-debcargo (2.4.3-1) unstable; urgency=medium + + * Package debcargo 2.4.3 from crates.io using debcargo 2.4.2 + + -- Ximin Luo Sat, 18 Apr 2020 20:52:06 +0100 + +rust-debcargo (2.4.2-1) unstable; urgency=medium + + * Package debcargo 2.4.2 from crates.io using debcargo 2.4.2 + + -- Ximin Luo Wed, 08 Jan 2020 21:54:13 +0000 + +rust-debcargo (2.4.1-1) unstable; urgency=medium + + * Package debcargo 2.4.1 from crates.io using debcargo 2.4.1 + * Closes: #945436, #945499, #945560, #947088. + + -- Ximin Luo Fri, 03 Jan 2020 01:19:34 +0000 + +rust-debcargo (2.4.0-1) unstable; urgency=medium + + * Package debcargo 2.4.0 from crates.io using debcargo 2.4.0 + (Closes: #931897) + + -- Ximin Luo Thu, 15 Aug 2019 19:07:57 -0700 + +rust-debcargo (2.2.10-1) unstable; urgency=medium + + * Package debcargo 2.2.10 from crates.io using debcargo 2.2.10 + + -- Ximin Luo Sun, 20 Jan 2019 23:25:15 -0800 + +rust-debcargo (2.2.9-2) unstable; urgency=medium + + * Package debcargo 2.2.9 from crates.io using debcargo 2.2.9 + * Add dependency on quilt. + * Install debcargo.toml.example as an example. + + -- Ximin Luo Thu, 29 Nov 2018 22:33:36 -0800 + +rust-debcargo (2.2.9-1) unstable; urgency=medium + + * Package debcargo 2.2.9 from crates.io using debcargo 2.2.9 + + -- Ximin Luo Wed, 14 Nov 2018 21:03:02 -0800 diff --git a/control b/control new file mode 100644 index 0000000..24a9f5b --- /dev/null +++ b/control @@ -0,0 +1,137 @@ +Source: rust-debcargo +Section: rust +Build-Depends: debhelper-compat (= 13), + dh-sequence-cargo +Build-Depends-Arch: cargo:native, + rustc:native (>= 1.58), + libstd-rust-dev, + librust-anyhow-1+default-dev, + librust-cargo+default-dev (<< 0.95), + librust-cargo+default-dev (>= 0.91), + librust-cargo-util-0.2+default-dev (>= 0.2.14), + librust-cargo-util-schemas+default-dev (<< 0.12), + librust-cargo-util-schemas+default-dev (>= 0.10), + librust-chrono-0.4+default-dev (>= 0.4.31), + librust-clap-4+cargo-dev (>= 4.5), + librust-clap-4+default-dev (>= 4.5), + librust-clap-4+derive-dev (>= 4.5), + librust-clap-4+wrap-help-dev (>= 4.5), + librust-clap-mangen-0.3+default-dev, + librust-debian-control+lossless-dev (<< 0.4), + librust-debian-control+lossless-dev (>= 0.2.14), + librust-env-logger-0.11+default-dev, + librust-filetime-0.2+default-dev, + librust-flate2-1+default-dev, + librust-git2+default-dev (<< 0.21), + librust-git2+default-dev (>= 0.19), + librust-glob-0.3+default-dev, + librust-indexmap-2+default-dev, + librust-indexmap-2+serde-dev, + librust-itertools+default-dev (<< 0.15), + librust-itertools+default-dev (>= 0.13), + librust-log-0.4+default-dev, + librust-nu-ansi-term-0.50+default-dev, + librust-regex-1+default-dev, + librust-semver-1+default-dev, + librust-serde-1+default-dev, + librust-serde-derive-1+default-dev, + librust-tar-0.4+default-dev, + librust-tempfile-3+default-dev, + librust-textwrap-0.16+default-dev, + librust-toml-1+default-dev, + librust-toml-edit-0.25+default-dev, + librust-walkdir-2+default-dev +Maintainer: Debian Rust Maintainers +Uploaders: + Ximin Luo , + Fabian Grünbichler +Standards-Version: 4.7.4 +Vcs-Git: https://salsa.debian.org/rust-team/debcargo-conf.git [src/debcargo] +Vcs-Browser: https://salsa.debian.org/rust-team/debcargo-conf/tree/master/src/debcargo +Homepage: https://salsa.debian.org/rust-team/debcargo +X-Cargo-Crate: debcargo +X-Cargo-Crate-Version: 2.8.3 + +Package: librust-debcargo-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-anyhow-1+default-dev, + librust-cargo+default-dev (<< 0.95), + librust-cargo+default-dev (>= 0.91), + librust-cargo-util-0.2+default-dev (>= 0.2.14), + librust-cargo-util-schemas+default-dev (<< 0.12), + librust-cargo-util-schemas+default-dev (>= 0.10), + librust-chrono-0.4+default-dev (>= 0.4.31), + librust-clap-4+cargo-dev (>= 4.5), + librust-clap-4+default-dev (>= 4.5), + librust-clap-4+derive-dev (>= 4.5), + librust-clap-4+wrap-help-dev (>= 4.5), + librust-clap-mangen-0.3+default-dev, + librust-debian-control+lossless-dev (<< 0.4), + librust-debian-control+lossless-dev (>= 0.2.14), + librust-env-logger-0.11+default-dev, + librust-filetime-0.2+default-dev, + librust-flate2-1+default-dev, + librust-git2+default-dev (<< 0.21), + librust-git2+default-dev (>= 0.19), + librust-glob-0.3+default-dev, + librust-indexmap-2+default-dev, + librust-indexmap-2+serde-dev, + librust-itertools+default-dev (<< 0.15), + librust-itertools+default-dev (>= 0.13), + librust-log-0.4+default-dev, + librust-nu-ansi-term-0.50+default-dev, + librust-regex-1+default-dev, + librust-semver-1+default-dev, + librust-serde-1+default-dev, + librust-serde-derive-1+default-dev, + librust-tar-0.4+default-dev, + librust-tempfile-3+default-dev, + librust-textwrap-0.16+default-dev, + librust-toml-1+default-dev, + librust-toml-edit-0.25+default-dev, + librust-walkdir-2+default-dev +Provides: + librust-debcargo+debian-control-dev (= ${binary:Version}), + librust-debcargo+default-dev (= ${binary:Version}), + librust-debcargo+update-dependencies-dev (= ${binary:Version}), + librust-debcargo-2-dev (= ${binary:Version}), + librust-debcargo-2+debian-control-dev (= ${binary:Version}), + librust-debcargo-2+default-dev (= ${binary:Version}), + librust-debcargo-2+update-dependencies-dev (= ${binary:Version}), + librust-debcargo-2.8-dev (= ${binary:Version}), + librust-debcargo-2.8+debian-control-dev (= ${binary:Version}), + librust-debcargo-2.8+default-dev (= ${binary:Version}), + librust-debcargo-2.8+update-dependencies-dev (= ${binary:Version}), + librust-debcargo-2.8.3-dev (= ${binary:Version}), + librust-debcargo-2.8.3+debian-control-dev (= ${binary:Version}), + librust-debcargo-2.8.3+default-dev (= ${binary:Version}), + librust-debcargo-2.8.3+update-dependencies-dev (= ${binary:Version}) +Breaks: + rustc (<< 1.58~) +Description: Create a Debian package from a Cargo crate - Rust source code + Source code for Debianized Rust crate "debcargo" + +Package: debcargo +Architecture: any +Section: devel +Depends: + ${misc:Depends}, + ${shlibs:Depends}, + ${cargo:Depends}, + quilt +Recommends: + ${cargo:Recommends}, + dh-cargo +Suggests: + ${cargo:Suggests} +Provides: + ${cargo:Provides} +Built-Using: ${cargo:Built-Using} +Static-Built-Using: ${cargo:Static-Built-Using} +Description: Create a Debian package from a Cargo crate + This package contains the following binaries built from the Rust crate + "debcargo": + - debcargo diff --git a/copyright b/copyright new file mode 100644 index 0000000..7a4eb71 --- /dev/null +++ b/copyright @@ -0,0 +1,44 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: debcargo +Upstream-Contact: + Josh Triplett + Ximin Luo + Vasudev Kamath +Source: https://salsa.debian.org/rust-team/debcargo + +Files: * +Copyright: + 2016 Josh Triplett + 2017-2018 Ximin Luo + 2017-2018 Vasudev Kamath + 2024 Fabian Grünbichler +License: MIT or Apache-2.0 + +Files: debian/* +Copyright: + 2018-2021 Debian Rust Maintainers + 2018 Ximin Luo +License: MIT or Apache-2.0 + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/copyright.debcargo.hint b/copyright.debcargo.hint new file mode 100644 index 0000000..e3f3e78 --- /dev/null +++ b/copyright.debcargo.hint @@ -0,0 +1,58 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: debcargo +Upstream-Contact: + Josh Triplett + Ximin Luo + Vasudev Kamath + Fabian Grünbichler +Source: https://salsa.debian.org/rust-team/debcargo + +Files: * +Copyright: + FIXME (overlay) UNKNOWN-YEARS Josh Triplett + FIXME (overlay) UNKNOWN-YEARS Ximin Luo + FIXME (overlay) UNKNOWN-YEARS Vasudev Kamath + FIXME (overlay) UNKNOWN-YEARS Fabian Grünbichler +License: MIT or Apache-2.0 +Comment: + FIXME (overlay): Since upstream copyright years are not available in + Cargo.toml, they were extracted from the upstream Git repository. This may not + be correct information so you should review and fix this before uploading to + the archive. + +Files: src/debian/licenses/AGPL-3.0 +Copyright: 2007 Free Software Foundation, Inc. +License: UNKNOWN-LICENSE; FIXME (overlay) +Comment: + FIXME (overlay): These notices are extracted from files. Please review them + before uploading to the archive. + +Files: debian/* +Copyright: + 2018-2026 Debian Rust Maintainers + 2018-2026 Ximin Luo + 2018-2026 Fabian Grünbichler +License: MIT or Apache-2.0 + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debcargo.examples b/debcargo.examples new file mode 100644 index 0000000..2bf9da9 --- /dev/null +++ b/debcargo.examples @@ -0,0 +1 @@ +debcargo.toml.example diff --git a/debcargo.manpages b/debcargo.manpages new file mode 100644 index 0000000..bf2a0eb --- /dev/null +++ b/debcargo.manpages @@ -0,0 +1 @@ +manpages/*.1 diff --git a/debcargo.toml b/debcargo.toml new file mode 100644 index 0000000..b2ea0ba --- /dev/null +++ b/debcargo.toml @@ -0,0 +1,7 @@ +overlay = "." +uploaders = ["Ximin Luo ", "Fabian Grünbichler "] + +[packages.bin] +section = "devel" +depends = ["quilt"] +recommends = ["dh-cargo"] diff --git a/patches/clap-mangen-0.3.patch b/patches/clap-mangen-0.3.patch new file mode 100644 index 0000000..94e5c15 --- /dev/null +++ b/patches/clap-mangen-0.3.patch @@ -0,0 +1,28 @@ +--- rust-debcargo-2.8.3.orig/Cargo.toml ++++ rust-debcargo-2.8.3/Cargo.toml +@@ -83,7 +83,7 @@ features = [ + ] + + [dependencies.clap_mangen] +-version = "0.2.29" ++version = "0.3" + + [dependencies.debian-control] + version = ">=0.2.14,<0.4" +--- rust-debcargo-2.8.3.orig/manpages/debcargo-build-order.1 ++++ rust-debcargo-2.8.3/manpages/debcargo-build-order.1 +@@ -17,7 +17,13 @@ Resolution type + .br + + .br +-[\fIpossible values: \fRSourceForDebianUnstable, BinaryAllForDebianTesting] ++\fIPossible values:\fR ++.RS 14 ++.IP \(bu 2 ++SourceForDebianUnstable ++.IP \(bu 2 ++BinaryAllForDebianTesting ++.RE + .TP + \fB\-\-emulate\-collapse\-features\fR + Emulate resolution as if every package were built with \-\-collapse\-features diff --git a/patches/fix-test-tmpdir.patch b/patches/fix-test-tmpdir.patch new file mode 100644 index 0000000..882eed8 --- /dev/null +++ b/patches/fix-test-tmpdir.patch @@ -0,0 +1,30 @@ +commit 87b5189176cd3ba3929cc827560ca10aa2198b89 +Author: Fabian Grünbichler +Date: Sat Jun 6 23:25:23 2026 +0200 + + tests: skip overlay=cwd test in package build context + + just like the other local crate tests - until we find a way to make them + robust. + + Signed-off-by: Fabian Grünbichler + +diff --git a/tests/local-crate.rs b/tests/local-crate.rs +index 054a5ec..9626b72 100644 +--- a/tests/local-crate.rs ++++ b/tests/local-crate.rs +@@ -60,10 +60,13 @@ fn generate_package_with_semver_crate_src() { + + #[test] + fn overlay_bail_with_recursive_copy() { +- let tmp = tempfile::tempdir().unwrap(); ++ let tmp = tempfile::tempdir_in(Path::new(env!("CARGO_TARGET_TMPDIR"))).unwrap(); + let manifest_dir = env!("CARGO_MANIFEST_DIR"); + + let foobar_path = Path::new(manifest_dir).join("tests").join("foobar"); ++ if !foobar_path.exists() { ++ return; ++ } + let config_content = format!( + r#"overlay = "." + crate_src_path = "{}" diff --git a/patches/relax-deps.patch b/patches/relax-deps.patch new file mode 100644 index 0000000..7af97e4 --- /dev/null +++ b/patches/relax-deps.patch @@ -0,0 +1,15 @@ +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -141,10 +141,10 @@ + version = "0.16" + + [dependencies.toml] +-version = "0.9" ++version = "1" + + [dependencies.toml_edit] +-version = ">= 0.22, < 0.24" ++version = "0.25" + + [dependencies.walkdir] + version = "2" diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..612e724 --- /dev/null +++ b/patches/series @@ -0,0 +1,3 @@ +relax-deps.patch +fix-test-tmpdir.patch +clap-mangen-0.3.patch diff --git a/rules b/rules new file mode 100755 index 0000000..00e815c --- /dev/null +++ b/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk + +%: + dh $@ --buildsystem cargo + +override_dh_auto_test: +ifneq ($(DEB_HOST_ARCH),mips64el) + dh_auto_test -- test --all +endif + +override_dh_auto_install: + $(if $(findstring armhf,$(DEB_HOST_ARCH)), DEB_BUILD_OPTIONS="parallel=4 $(filter-out parallel=%,$(DEB_BUILD_OPTIONS))") dh_auto_install diff --git a/rules.debcargo.hint b/rules.debcargo.hint new file mode 100755 index 0000000..92c239b --- /dev/null +++ b/rules.debcargo.hint @@ -0,0 +1,6 @@ +#!/usr/bin/make -f +%: + dh $@ --buildsystem cargo + +override_dh_auto_test: + dh_auto_test -- test --all diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/control b/tests/control new file mode 100644 index 0000000..4b3393d --- /dev/null +++ b/tests/control @@ -0,0 +1,27 @@ +Test-Command: /usr/share/cargo/bin/cargo-auto-test debcargo 2.8.3 --all-targets --all-features +Features: test-name=rust-debcargo:@ +Depends: dh-cargo (>= 33~), rustc (>= 1.58), @ +Restrictions: allow-stderr + +Test-Command: /usr/share/cargo/bin/cargo-auto-test debcargo 2.8.3 --all-targets --no-default-features --features debian-control +Features: test-name=librust-debcargo-dev:debian-control +Depends: dh-cargo (>= 33~), rustc (>= 1.58), @ +Restrictions: allow-stderr +Architecture: !riscv64 + +Test-Command: /usr/share/cargo/bin/cargo-auto-test debcargo 2.8.3 --all-targets +Features: test-name=librust-debcargo-dev:default +Depends: dh-cargo (>= 33~), rustc (>= 1.58), @ +Restrictions: allow-stderr + +Test-Command: /usr/share/cargo/bin/cargo-auto-test debcargo 2.8.3 --all-targets --no-default-features --features update-dependencies +Features: test-name=librust-debcargo-dev:update-dependencies +Depends: dh-cargo (>= 33~), rustc (>= 1.58), @ +Restrictions: allow-stderr +Architecture: !riscv64 + +Test-Command: /usr/share/cargo/bin/cargo-auto-test debcargo 2.8.3 --all-targets --no-default-features +Features: test-name=librust-debcargo-dev: +Depends: dh-cargo (>= 33~), rustc (>= 1.58), @ +Restrictions: allow-stderr +Architecture: !riscv64 diff --git a/watch b/watch new file mode 100644 index 0000000..d199521 --- /dev/null +++ b/watch @@ -0,0 +1,8 @@ +Version: 5 + +Source: https://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=crates.io/debcargo +Matching-Pattern: .*/crates/debcargo/@ANY_VERSION@/download +Filenamemangle: s/.*\/(.*)\/download/debcargo-$1\.tar\.gz/g +Uversionmangle: s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/ +Dversionmangle: s/@DEB_EXT@//g +Compression: gzip